﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dillon.CSV
{
    class Errors
    {
        int count = 0;
        StringBuilder errorText = new StringBuilder();

        public string ErrorOutput
        {
            get
            {
                return errorText.ToString();
            }
        }

        public int Count
        {
            get
            {
                return count;
            }
        }

        public void Error(int line, int col, string errorMessage)
        {
            errorText.AppendLine(String.Format("-- line {0} col {1}: {2}", line, col, errorMessage));
            count++;
        }
    }
}
